package gulimall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author HLF
 * @date 2022/4/23 16:48
 */
@SpringBootApplication
@MapperScan("gulimall.mapper")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "gulimall.feign")
@EnableCaching  //开启缓存
@EnableRedisHttpSession //开启SpringSession支持
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
